
import BaseMixin from '@/views/mixin.vue'
import { HttpFinanceRemaind } from "@/service/api/views";
import compSearch from './search';

export default {
    mixins: [BaseMixin],
    components: {
        compSearch,
    },
    data() {
        return {
            title: "客户管理"
        };
    },
    methods: {
        httpList: HttpFinanceRemaind,
    },
    computed: {
        columns() {
            return [{
                title: "账户组织",
                key: "organizationName",
                sortable: true,
            }, {
                title: "状态",
                key: "accountStatus",
                render(h, { row }) {
                    return <span>{row.accountStatus == 0 ? '正常' : '欠费'}</span>
                }
            }, {
                title: "账户余额(USD)",
                key: "totalAmount",
                sortable: true,
            }, {
                title: "可用余额(USD)",
                key: "availableAmount",
                sortable: true,
            }];
        },

    }
};
